import request from '@/utils/axios'
import {
    appUrl
} from '@/utils/env'

export function getServerList(data) {
    return request({
        url: appUrl + '/device/config/search',
        method: 'post',
        data
    })
}

export function addServer(data) {
    return request({
        url: appUrl + '/device/config/create',
        method: 'post',
        data
    })
}

export function editServer(data) {
    return request({
        url: appUrl + '/device/config/update',
        method: 'post',
        data
    })
}

export function getServerInfo(data) {
    return request({
        url: appUrl + '/device/config/info',
        method: 'post',
        data
    })
}

export function deleteServer(data) {
    return request({
        url: appUrl + '/device/config/delete',
        method: 'post',
        data
    })
}

